package com.AOP;

import com.yangbwe.Springtest.SpringAOP.DosomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOPtest2 {
    @Test
    public void dotest() {
        String config = "AOP/Aop2.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(config);
        DosomeService proxy = (DosomeService) applicationContext.getBean("SomeService2");
        String str = proxy.dosome2("李四", "24");
        System.out.println(str+"dsaf");
    }
}